package com.uvnos4j.matilda.schedule.vo;

import com.uvnos4j.matilda.commons.vo.AbstractVo;
import com.uvnos4j.matilda.schedule.domain.ScheduleTask;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * ScheduleTaskVo View Object 接收视图层数据的值对象
 *
 * @author Guo.wl
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ScheduleTaskVo extends AbstractVo<ScheduleTask> {

    @NotBlank(message = "任务标识不能为空")
    private String taskKey;

    private String taskDesc;

    @NotBlank(message = "任务表达式不能为空")
    private String taskCron;

    private Integer initStartFlag;

}